package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.ViewpointComment;
import cn.wolfcode.luowowo.common.query.ViewpointCommentQueryObject;
import com.github.pagehelper.PageInfo;

public interface IViewpointCommentService {

    /**
     * 添加景点评论
     * @param viewpointComment
     * @return
     */
    void addComment(ViewpointComment viewpointComment);

    /**
     * 分页查询景点
     * @param qo
     * @return
     */
    PageInfo<ViewpointComment> query(ViewpointCommentQueryObject qo);

    /**
     * 有图的评论数量
     * @param pointId
     * @return
     */
    int hasImageNum(Long pointId);
    /**
     * 好评论数量
     * @param pointId
     * @return
     */
    int goodNum(Long pointId);

    /**
     * 中评数量
     * @param pointId
     * @return
     */
    int averageNum(Long pointId);

    /**
     * 差评数量
     * @param pointId
     * @return
     */
    int badNum(Long pointId);
}
